package functional.closure;

import java.util.function.IntSupplier;

/**
 * @ClassName Closure7
 * @PackageName functional.closure
 * @projectName myThread
 * @Description 
 * @Author games
 * @Date 2025/8/27 下午1:40
 * @Version 1.0
 */
public class Closure7 {
    IntSupplier makeFun(int x) {
        Integer i = 0;
        i = i + 1;
        //return () -> x + i;
        return () -> x ;
    }
}
